#ifndef __GUI__
#define __GUI__

#include "../lib/def.h"
#include "../dev/ega.h"

typedef STATUS(*LPWNDPROC)(HANDLE, UINT, DWORD, DWORD);

typedef struct {
    RECT PreRect;
    RECT PreBorder;
    RECT Rect;
    RECT Border;
    LPWNDPROC lpfnWndProc;
} GUIINFO, *PGUIINFO, *FAR LPGUIINFO;

VOID GUICreate(PGUIINFO pInfo, LPRECT lpRect, LPRECT lpBorder);
VOID GUIUpdate();

#endif